/*
 *
 * Copyright (c) 2021
 * User:Dybala
 * File:AdminDao.java
 * Date:2021/11/21 22:39:21
 */

package com.dao;

import com.pojo.Admin;
import com.pojo.Notice;
import com.pojo.Report;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AdminDao {
    Admin queryByAccountAndPwd(Admin admin);
    List<Report> queryAffairByType(int type_id);
    int deleteAffairById(int id);
    int updateUserStatus(String email,String status);

    Boolean publishNotice(Notice notice);
    Report queryReportById(int id);
    Integer delNotice(Integer nid);
}